package com.example.vm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vm.domain.entity.Video;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface VideoMapper extends BaseMapper<Video> {
    @Select("select count(*) from video_like where user_id = #{id}")
    Long getlikeNum(Long id);
}
